// 封装商品相关接口
import request from '@/utils/request.js'

// 获取商品信息
const getGoodsData = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}
// 获取商品评价
const getGoodsChart = (goodsId) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId,
      limit: 8
    }
  })
}

export { getGoodsData, getGoodsChart }
